package com.hz.common.activity;

import android.os.Bundle;
import android.view.Gravity;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.LinearLayoutCompat;

import com.hz.common.R;

public class DestroyActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        TextView textView = new TextView(this);
        textView.setLayoutParams(new LinearLayoutCompat.LayoutParams(-1, -1));
        textView.setText("将在3秒后被关闭");
        textView.setTextSize(20);
        textView.setTextColor(getColor(R.color.black));
        textView.setGravity(Gravity.CENTER);
        setContentView(textView);
    }
}
